package com.qingmi.farmer.event;

/**
 * 基础事件
 */
public class BaseEvent {
    private int action;
    private String message;
    private Object data;
    private Class fromClass;

    public int getAction() {
        return action;
    }

    public BaseEvent setAction(int action) {
        this.action = action;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public BaseEvent setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getData() {
        return data;
    }

    public BaseEvent setData(Object data) {
        this.data = data;
        return this;
    }

    public Class getFromClass() {
        return fromClass;
    }

    public BaseEvent setFromClass(Class fromClass) {
        this.fromClass = fromClass;
        return this;
    }
}
